package com.codingyun.core.action;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller("/indexController")
public class IndexController {
	@RequestMapping(params = "index", method = RequestMethod.GET)
	public String index(HttpServletRequest request){
		String baseUrlStatic = request.getSession().getServletContext().getRealPath("/");
		request.setAttribute("baseUrlStatic", baseUrlStatic);
		System.out.println(baseUrlStatic);
		return "main/index";   
	}
}
